<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<link href="<%=request.getContextPath()%>/css/ini.css" type="text/css"
		rel="stylesheet">
	<link href="<%=request.getContextPath()%>/css/main_o.css"
		type="text/css" rel="stylesheet">
	<LINK href="<%=request.getContextPath()%>/css/cssCn.css"
		type="text/css" rel="stylesheet">
	<head>
		<!--[imcss] *** Infinite Menus Core CSS: Keep this section in the document head for full validation. -->
		<style type="text/css">
.imcm ul,.imcm li,.imcm div,.imcm span,.imcm a {
	text-align: left;
	vertical-align: top;
	padding: 0px;
	margin: 0;
	list-style: none outside none;
	border-style: none;
	background-image: none;
	clear: none;
	float: none;
	display: block;
	position: static;
	overflow: visible;
	line-height: normal;
}

.imcm li a img {
	display: inline;
	border-width: 0px;
}

.imcm span {
	display: inline;
}

.imcm .imclear,.imclear {
	clear: both;
	height: 0px;
	visibility: hidden;
	line-height: 0px;
	font-size: 1px;
}

.imcm .imsc {
	position: relative;
}

.imcm .imsubc {
	position: absolute;
	visibility: hidden;
}

.imcm li {
	list-style: none;
	font-size: 1px;
	float: left;
}

.imcm ul ul li {
	width: 100%;
	float: none !important;
}

.imcm a {
	display: block;
	position: relative;
}

.imcm ul .imsc,.imcm ul .imsubc {
	z-index: 10;
}

.imcm ul ul .imsc,.imcm ul ul .imsubc {
	z-index: 20;
}

.imcm ul ul ul .imsc,.imcm ul ul ul .imsubc {
	z-index: 30;
}

.imde ul li:hover .imsubc {
	visibility: visible;
}

.imde ul ul li:hover  .imsubc {
	visibility: visible;
}

.imde ul ul ul li:hover  .imsubc {
	visibility: visible;
}

.imde li:hover ul  .imsubc {
	visibility: hidden;
}

.imde li:hover ul ul .imsubc {
	visibility: hidden;
}

.imde li:hover ul ul ul  .imsubc {
	visibility: hidden;
}

.imcm .imea {
	display: block;
	position: relative;
	left: 0px;
	font-size: 1px;
	line-height: 1px;
	height: 0px;
	width: 1px;
	float: right;
}

.imcm .imea span {
	display: block;
	position: relative;
	font-size: 1px;
	line-height: 0px;
}

.dvs,.dvm {
	border-width: 0px
} /*\*/ /*/.imcm .imea{visibility:hidden;}/**/
</style>
		<!--[if IE]><style type="text/css">.imcm .imea span{position:absolute;}.imcm .imclear,.imclear{display:none;}.imcm{zoom:1;} .imcm li{curosr:hand;} .imcm ul{zoom:1}.imcm a{zoom:1;}</style><![endif]-->
		<!--[if gte IE 7]><style type="text/css">.imcm .imsubc{background-image:url(ie_css_fix);}</style><![endif]-->
		<!--end-->

		<!--[imstyles] *** Infinite Menu Styles: Keep this section in the document head for full validation. -->
		<style type="text/css">
* {
	margin: 0;
	padding: 0;
}

/* --[[ Main Expand Icons ]]-- */
#imenus0 .imeam span,#imenus0 .imeamj span {
	background-image: url(sample2_main_arrow.gif);
	width: 16px;
	height: 9px;
	left: -16px;
	top: 3px;
	background-repeat: no-repeat;
	background-position: top left;
}

#imenus0 li:hover .imeam span,#imenus0 li a.iactive .imeamj span {
	background-image: url(sample2_main_arrow.gif);
	background-repeat: no-repeat;
	background-position: top left;
}

/* --[[ Sub Expand Icons ]]-- */
#imenus0 ul .imeas span,#imenus0 ul .imeasj span {
	background-image: url(sample2_sub_arrow.gif);
	width: 10px;
	height: 13px;
	left: -10px;
	top: 0px;
	background-repeat: no-repeat;
	background-position: top left;
}

#imenus0 ul li:hover .imeas span,#imenus0 ul li a.iactive .imeasj span {
	background-image: url(sample2_sub_arrow.gif);
	background-repeat: no-repeat;
	background-position: top left;
}

/* --[[ Sub Container ]]-- */
#imenus0 li ul {
	background-color: #fef5d8;
	border-style: solid;
	border-color: #111111;
	border-width: 1px;
	padding: 5px;
}

/* --[[ Main Items ]]-- */
#imenus0 li a,#imenus0 .imctitle {
	color: #333333;
	text-align: center;
	font-family: Arial;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	border-style: none;
	border-color: #000000;
	border-width: 0px;
	padding: 2px 5px;
}

/* [hover] - These settings must be duplicated for IE compatibility.*/
#imenus0 li:hover>a {
	color: #ff0000;
}

#imenus0 li a.ihover,.imde imenus0 a:hover {
	color: #ff0000;
}

/* [active] */
#imenus0 li a.iactive {
	text-decoration: underline;
}

/* --[[ Sub Items ]]-- */
#imenus0 ul a,#imenus0 .imsubc li .imctitle {
	color: #111111;
	text-align: left;
	font-size: 11px;
	font-weight: normal;
	text-decoration: none;
	border-style: none;
	border-color: #000000;
	border-width: 1px;
	padding: 2px 5px;
}

/* [hover] - These settings must be duplicated for IE comptatibility.*/
#imenus0 ul li:hover>a {
	color: #ff0000;
}

#imenus0 ul li a.ihover {
	color: #ff0000;
}

/* [active] */
#imenus0 ul li a.iactive {
	text-decoration: underline;
}
</style>
		<!--end-->

	</head>
	<script type="text/javascript">
	function getSubForm(actionUrl){
		var frm=window.parent.window.frames['middFrm'];
		if(actionUrl =="logout"){
			if(confirm('您确定要退出本系统吗？'))			
			 parent.location.href="<%=request.getContextPath()%>/seal/logout";
		}else{
			frm.location.href="<%=request.getContextPath()%>/seal/"+actionUrl;
		}
	}
	
	function reloadHomePage(){
		window.parent.frames["middFrm"].location.reload();
	}
	
	function activeForm(actionUrl){
		window.parent.frames["middFrm"].frames["mainFrame"].location.href="<%=request.getContextPath()%>/seal/"+actionUrl;
	}
</script>
	<%
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		String currentDate = format.format(new Date());
	%>
	<body topmargin="0" leftmargin="0">
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td align="center" height="60" width="100%">
					<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
						<TR>
							<TD align="left" valign="top" width="100%">
								<div id=dv_logo>
									<img src="<%=request.getContextPath()%>/images/home.gif">
								</div>
								<div style="position: absolute; top: 5px; right: 50px;">
									<table width="300" align="right">
										<tr>
											<td>
												<a href="#" onclick="activeForm('index')">首页</a>
												|
												<a href="#" onclick="activeForm('message_addPage');">反馈</a>
												|
												<a href="<%=request.getContextPath()%>/seal/doc?page=help" target="_blank">帮助</a>
												|
												<a href="#" onclick="getSubForm('logout');">退出</a>
											</td>
										</tr>
										<tr>
											<td>
												${userId }
											</td>
										</tr>
									</table>
								</div>
							</TD>
						</TR>
					</TABLE>
				</td>
			</tr>
			<!-- 应用栏 -->
			<tr height="26px">
				<td width="100%" valign="middle">
					<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
						<TR>
							<TD nowrap align="left" width="100%" height="20px"
								background="<%=request.getContextPath()%>/images/sample2_bg.gif">

								<div class="imrcmain0 imgl"
									style="width: 100%; z-index: 999999; position: relative;">
									<div class="imcm imde" id="imouter0">
										<ul id="imenus0">
											<s:iterator value="#request.menuItems" id="ca">
												<li style="width: 110px;">
													<a href="#"
														onclick="getSubForm('<s:property value="#ca.actionUrl" />');">
														<s:property value="#ca.title" /> </a>
												</li>
											</s:iterator>
										</ul>
										<div class="imclear">
											&nbsp;
										</div>
									</div>
								</div>

							</TD>
						</TR>
					</TABLE>
				</td>
			</tr>
		</table>
	</body>
</html>